/*
 * @Author: 别拿暗恋当饭吃. 13466071+lililkli@user.noreply.gitee.com
 * @Date: 2024-06-24 17:24:59
 * @LastEditors: 别拿暗恋当饭吃. 13466071+lililkli@user.noreply.gitee.com
 * @LastEditTime: 2024-06-26 17:02:06
 * @FilePath: \rabce\project\src\store\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { configureStore, combineReducers } from "@reduxjs/toolkit";
import user from "./user";
// import Loginemail from "./login";
import knowledge from "./CommunityPortList";
import loginstate from "./login";
const createStore = () => {
  const rootReducer = combineReducers({
    user,
    // Loginemail,
    loginstate,
    knowledge
  });

  return configureStore({
    reducer: rootReducer,

    // reducer: {
    //   //   user,
    //   knowledge,
    // },
  });
};

const store = createStore();

export default store;
